package com.example.text;

import android.os.Bundle;
import android.app.Activity;
//import android.content.DialogInterface.OnClickListener;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup.LayoutParams;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;

public class MainActivity extends Activity {
	Button btnClick;
	TextView tvResult;
	EditText etFn;
	EditText etLn;
	
	protected char[] firstname;
	protected Object lastname;
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        btnClick = (Button) findViewById(R.id.btnClick);
        tvResult = (TextView) findViewById(R.id.tvResult);
        etFn = (EditText) findViewById(R.id.etFirstName);
        etLn = (EditText) findViewById(R.id.etLastName);
        
        tvResult.setTextSize(20.1f);
        
        btnClick.setOnClickListener(new OnClickListener() {
			
			public void onClick(View v) {
//				setContentView(btnClick);
//				System.out.println(firstname+);
				tvResult.setText("Hello " + etFn.getText() + " " + etLn.getText());
				
			}
		});
    }

	

}
